public class Test {
    public static int max (int a,int b){
        if(a > b){
            return a;
        }
        return b;
    }

    public static double max(double a,double b,double c){
        if(a > b && a > c){
            return a;
        }else if(b > a && b > c){
            return b;
        }else{
            return c;
        }
    }
    public static void main(String[] args) {
        System.out.println(max(3,4));
        System.out.println(max(3.3,4.5,6.7));
    }
}
